Skip to content

Conversation

@crazytonyli
Copy link
Contributor

Description

This PR adds basic support for custom post types, which is behind a local feature flag (on by default in debug builds).

Please note that, during development, I found a few parsing issues. I suspect there are more. We'll need to try a few more plugins that register custom post types (see 1 below).

Supported features:

  1. View custom post types that are declared as publicly viewable. If you can open the custom posts in the post editor on the web, then you should be able to see them in the app.
  2. View existing posts in the custom post types. No support for creating new posts.
  3. Filtering by post status.
  4. Search.
  5. Edit and save the posts in the GBK editor.

Testing instructions

You can use cpt.wpmt.co to view the books on the site. Please note that not all books can be loaded (see p1768466053646389-slack-C06S1QS55K9).

You can install WP Job Manager on test sites, which registers a "job listing" custom post type.

@crazytonyli crazytonyli added this to the 26.7 milestone Jan 22, 2026
@crazytonyli crazytonyli requested review from jkmassel and kean January 22, 2026 09:39
@dangermattic
Copy link
Collaborator

2 Warnings
⚠️ View files have been modified, but no screenshot or video is included in the pull request. Consider adding some for clarity.
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.

Generated by 🚫 Danger

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 22, 2026

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number30587
VersionPR #25157
Bundle IDcom.jetpack.alpha
Commit5070ed6
Installation URL2ouhd2bh8m518
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 22, 2026

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number30587
VersionPR #25157
Bundle IDorg.wordpress.alpha
Commit5070ed6
Installation URL1lk04dd38f2q8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Contributor

wpmobilebot commented Jan 22, 2026

🤖 Build Failure Analysis

This build has failures. Claude has analyzed them - check the build annotations for details.

return TaggedManagedObjectID(blog)
}
case let .selfHosted(id, _, _, _):
case let .selfHosted(id, _, _, _, _):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(nit) would be nice to wrap this associated values in a struct

import WebKit
import DesignSystem

class SimpleGBKViewController: UIViewController {
Copy link
Contributor

@kean kean Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the editor used for custom posts? Would it work to parameterize the current editor (NewGutenbergViewController) to work with these posts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that'd be the next step. The SimpleGBKViewController was created to quickly test editing custom posts in GBK editor.

@crazytonyli crazytonyli force-pushed the prototype-custom-post-types branch from af4e4b9 to 014b963 Compare January 23, 2026 06:35
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants